package com.alison.module.authors.enums;

public enum StatusEnum implements KeyValueEnum {

    ONLINE(1, "在线"),

    OFFLINE(0, "掉线");

    private int key;

    private String description;

    StatusEnum(int key, String description) {
        this.key = key;
        this.description = description;
    }

    @Override
    public int getKey() {
        return key;
    }

    @Override
    public String getValue() {
        return this.description;
    }
}
